import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

typedef TDButtonEvent = void Function();

class LinkButton extends StatelessWidget {

  final text;

  final url;

  const LinkButton({super.key, this.text, this.url,});

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
        child: Text(
          text,
          textAlign: TextAlign.left,
          style: TextStyle(
              color: Colors.blue,
              fontSize: 20,
              height:2
          ),
        ),
        onTap:(){
          Navigator.pushNamed(context, url);
        }
    );
  }
}
